<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<html>
<head>
<title></title>
</head>
<body>
	<div align="center">
		<table width="900">
			<tr>
				<br>
				<td><%@include file="top.jsp"%><br></td>
			</tr>

			<tr>
				<td width="80%" height="15" valig="top">


					<div style="float:right">
						<a href="<%=path%>/admin/orders/ordersearch.jsp">查询</a><br> <br>
					</div>
					<table class="table" width="100%">
						<col width="10%">
						<col width="10%">
						<col width="10%">
						<col width="20%">
						<col width="10%">
						<col width="10%">
						<col width="10%">
						<col width="20%">
						<tr class="title">
							<td style="text-align:center">订单号</td>
							<td style="text-align:center">日期</td>
							<td style="text-align:center">收获人</td>
							<td style="text-align:center">地址</td>
							<td style="text-align:center">图书总数</td>
							<td style="text-align:center">总价</td>
							<td style="text-align:center">状态</td>
							<td style="text-align:center">更改状态</td>
						</tr>

						<!-- 遍历开始 -->
						<s:iterator value="#session.order_list" var="order">
							<tr class="list">
								<td style="text-align:center"><s:property
										value="#order.orderid" /></td>
								<td style="text-align:center"><s:property
										value="#order.orderdate" /></td>
								<td style="text-align:center"><s:property
										value="#order.receiver" /></td>
								<td style="text-align:center"><s:property
										value="#order.address" /></td>
								<td style="text-align:center"><s:property
										value="#order.totalnum" /></td>
								<td style="text-align:center"><s:property
										value="#order.totalamount" /></td>
								<td style="text-align:center"><s:property
										value="#order.state" /></td>
								<td style="text-align:center"><a
									<s:if test="#order.state<2" >
								href="<%=path%>/admin/OrdersAction_changeState.action?orderid=<s:property value="#order.orderid"/>"
								 </s:if>><s:if
											test="#order.state==0">发货</s:if> <s:elseif
											test="#order.state==1">运送途中 </s:elseif> <s:else>已完成</s:else></a>
									&nbsp; <a
									href="<%=path%>/admin/OrdersAction_deleteOrder.action?orderid=<s:property value="#order.orderid"/>"
									onclick="javascript: return confirm('真的要删除吗？');">删除</a></td>
							</tr>
						</s:iterator>
					</table>
				</td>
			<tr>

			</tr>
		</table>
	</div>
</body>
</html>
